package com.hyt.it.ogt.kq.service.bm.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("send_message_log_candidate")
@ApiModel(value="短信主体对象", description="")
@Builder
public class SendMessageLogCandidate extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "邮件或短信ID")
    private String sendLogId;

    @ApiModelProperty(value = "项目ID")
    private String projectId;

    @ApiModelProperty(value = "考生报名ID")
    private String studentId;

    @ApiModelProperty(value = "接收人", required = true)
    @Length(min=1, max = 50, message = "接收人不能为空且长度在[1,50]之间")
    @NotNull(message = "接收人不能为空")
    private String receiver;

    @ApiModelProperty(value = "发送内容", required = true)
    private String content;

    @ApiModelProperty(value = "发送结果")
    private String sendResult;

    @ApiModelProperty(value = "发送结果状态0：未投递，1：投递中，2：已投递，3：投递失败，4：已阅")
    private Integer sendState;


}
